package cn.wei.youvieoj.service;

import cn.wei.youvieoj.model.dto.question.QuestionQueryRequest;
import cn.wei.youvieoj.model.entity.Question;
import cn.wei.youvieoj.model.vo.QuestionVO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
* @author Youvie
* @description 针对表【question(题目)】的数据库操作Service
* @createDate 2024-08-07 20:07:42
*/
public interface QuestionService extends IService<Question> {


    void validQuestion(Question question, boolean add);

    QuestionVO getQuestionVO(Question question, HttpServletRequest request);

    QueryWrapper<Question> getQueryWrapper(QuestionQueryRequest questionQueryRequest);

    Page<QuestionVO> getQuestionVOPage(Page<Question> questionPage, HttpServletRequest request);
}
